package com.linkage.educloud.ah.mvp.contract;

import com.linkage.educloud.ah.bean.AppBean;
import com.linkage.educloud.ah.bean.ArticleBean;
import com.linkage.educloud.ah.bean.BannerBean;
import com.linkage.educloud.ah.http.Method;
import com.linkage.educloud.ah.mvp.ABasicPresenter;
import com.linkage.educloud.ah.mvp.IBasicView;
import com.linkage.educloud.ah.mvp.ICommonModel;
import com.zhouyou.http.model.HttpParams;

import java.util.List;

import io.reactivex.Observable;

/**
 * <desc>
 * Created by The Moss on 2018/9/3.
 */

public interface IHomeContract {
    interface IView extends IBasicView {
        void showBanner(final List<BannerBean> list);
        void initApps(List<AppBean> list);
        void initNews(List<ArticleBean> list);
    }

    abstract class IPresenter<T extends IBasicView> extends ABasicPresenter {
        public IPresenter(T iView) {
            super(iView);
        }

        public abstract void getRollAds(int usertype);


        public abstract void getMyApps(int type);

        public abstract void getArticle(int pageSize, int pages);

    }

    interface IModel extends ICommonModel {
        Observable request(Method method, boolean isToken, HttpParams params, String url);
    }
}
